//
//  SoldRrderListViewController.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/10.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "SoldRrderListViewController.h"
#import "SoldRrderViewModel.h"
#import "OrderInformationViewController.h"

@interface SoldRrderListViewController ()
@property (nonatomic, strong) SoldRrderViewModel *viewModel;
@end

@implementation SoldRrderListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.viewModel = [[SoldRrderViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    kWeakSelf(self);
    self.viewModel.BlockSelecRow = ^(NSIndexPath *selt) {
        [weakself seleRow:selt];
    };
}

- (void)seleRow:(NSIndexPath *)idex
{
    OrderInformationViewController *vc = [OrderInformationViewController new];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
